/*
 * Copyright (c) 2005, 2014 vacoor
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 */
package org.vacoor.nothing.security.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 */
@Controller
@RequestMapping("/")
public class HomeController {

    @RequestMapping(value = {"{index:index;?.*}"})
    public String index() {
        return "index";
    }

    @RequestMapping("ext")
    public String extIndex() {
        return "ext-index";
    }

    @RequestMapping("demo")
    public String get(String path) {
        return "demo/" + path;
    }

    @RequestMapping("end")
    public String adm(String path) {
        return "endadmin";
    }
}
